package com.ww.springboot.mybatis.data.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ww.springboot.mybatis.data.entity.OnlineChannelServiceBindStoreEntity;

import java.util.List;

/**
 * 服务类
 *
 * @author Chill
 */
public interface IOnlineChannelServiceBindStoreService extends IService<OnlineChannelServiceBindStoreEntity> {

    /**
     * 根据线上绑定服务id删除店铺信息
     *
     * @param ocsbIds "线上绑定服务id，多个用“,”分割
     */
    void deleteByOcsbIds(String ocsbIds);

    /**
     * 自定义批量插入
     *
     * @param list 批量插入
     * @return true 成功  false 失败
     */
    boolean insertBatch(List<OnlineChannelServiceBindStoreEntity> list);

    /**
     * @param entity
     * @return
     */
    boolean insert(OnlineChannelServiceBindStoreEntity entity);

    /**
     * 根据店铺查询
     *
     * @param ocsbIds   服务绑定id
     * @param storeCode
     * @return
     */
    List<OnlineChannelServiceBindStoreEntity> getByStoreCode(List<Long> ocsbIds, String storeCode);
}
